package com.hhxy.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author ghp
 * @date 2023/4/26
 * @title
 * @description
 */
@ApiModel(value = "用于接收新增评论信息的传输对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AddCommentDto {
    /**
     * 主键ID
     */
    private Long id;
    /**
     * 评论类型 0-文章评论 1-友链评论
     */
    @ApiModelProperty(notes = "评论类型 0-文章评论 1-友链评论")
    private String type;
    /**
     * 文章id
     */
    @ApiModelProperty(notes = "文章id", dataType = "Long")
    @NotNull
    private Long articleId;
    /**
     * 根评论id
     */
    @ApiModelProperty(notes = "根评论id")
    private Long rootId;
    /**
     * 评论内容
     */
    @ApiModelProperty(notes = "评论内容")
    @NotBlank
    private String content;
    /**
     * 回复的目标评论的userid
     */
    @ApiModelProperty(notes = "回复评论用户的id", dataType = "Long")
    private Long toCommentUserId;
    /**
     * 回复目标评论id
     */
    @ApiModelProperty(notes = "回复目标评论id", dataType = "Long")
    private Long toCommentId;
    /**
     * 评论的创建人
     */
    @ApiModelProperty(notes = "评论的创建人", dataType = "Long")
    private Long createBy;
    /**
     * 评论更新时间
     */
    @ApiModelProperty(notes = "评论更新时间", dataType = "Long")
    private Date createTime;
    /**
     * 评论更新人
     */
    @ApiModelProperty(notes = "评论更新人", dataType = "Long")
    private Long updateBy;
    /**
     * 评论更新时间
     */
    @ApiModelProperty(notes = "评论更新时间", dataType = "Date")
    private Date updateTime;

}
